import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SMarketItem
    
    export  class SMarketItem
    {
       

        public __write(arg1: SerializeStream): void
        {
            arg1.writeLong(this.marketId);
            arg1.writeInt(this.recordType);
            arg1.writeInt(this.code);
            arg1.writeString(this.itemExtend);
            arg1.writeInt(this.amount);
            arg1.writeInt(this.ownerPlayerId);
            arg1.writeString(this.ownerName);
            arg1.writeInt(this.level);
            arg1.writeInt(this.career);
            arg1.writeInt(this.color);
            arg1.writeInt(this.sellPrice);
            arg1.writeInt(this.sellUnit);
            arg1.writeDate(this.createDt);
            arg1.writeDate(this.timeoutDt);
            return;
        }

        public __read(arg1: SerializeStream): void
        {
            this.marketId = arg1.readLong();
            this.recordType = arg1.readInt();
            this.code = arg1.readInt();
            this.itemExtend = arg1.readString();
            this.amount = arg1.readInt();
            this.ownerPlayerId = arg1.readInt();
            this.ownerName = arg1.readString();
            this.level = arg1.readInt();
            this.career = arg1.readInt();
            this.color = arg1.readInt();
            this.sellPrice = arg1.readInt();
            this.sellUnit = arg1.readInt();
            this.createDt = arg1.readDate();
            this.timeoutDt = arg1.readDate();
            return;
        }

        public /* var */marketId: number;

        public /* var */recordType: int;

        public /* var */code: int;

        public /* var */itemExtend: string;

        public /* var */amount: int;

        public /* var */ownerPlayerId: int;

        public /* var */ownerName: string;

        public /* var */level: int;

        public /* var */career: int;

        public /* var */color: int;

        public /* var */sellPrice: int;

        public /* var */sellUnit: int;

        public /* var */createDt: Date;

        public /* var */timeoutDt: Date;
    }
